xl: close restore file fd when we're done with it
authorWei Liu <wei.liu2@citrix.com>
Thu, 13 Aug 2015 10:09:38 +0000 (11:09 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Sun, 16 Aug 2015 06:48:37 +0000 (07:48 +0100)
commit6a249a118ef215d6eff4c4fec81a69298365a914
treeb1bca18c9eaf0e33d4b1aee8622380df158191bd
parenta97ee1cc4259abba99460aae1abe758920d998b2
xl: close restore file fd when we're done with it

And log if close fails.

Reported-by: Andrew Armenia <andrew@asquaredlabs.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c